package com.cn.ccp.bean;


public class UserBean {

	//用户id
	private int id ; 
	//x登录系统所使用用户名
	private String login_name ;
	//用户名
	private String userName ;
	//学号
	private String number ;
	//用户密码
	private String password = "" ;
	//页面显示用户名，主要是解决空的问题
	private String showPassword = "" ;
	//对于学生：宿舍地址 对于教职工：办公室地址
	private String dormitoryAddress ;
	//电子邮件
	private String email ;
	//性别（1：男性，0：女性）
	private String sex = "1";
	private String sexName ;
	//手机号码
	private String mobile ;
	//用户类型 1--学生 2--老师 3--教职工
	private String userType  ;
	private String userTypeName ;
	//家庭地址
	private String homeAddress ;
	//生日
	private String birtdate ;
	//邮编
	private String zipCode ;
	//对于学生：入学时间 对于老师：入职时间
	private String admissionTime ;
	//所在学院ID，可以为空，为空是表示外校学生
	private String facultyId;
	
	private String faculty = "" ;
	
	//专业id，当学生有多个专业时，各个专业id之间用冒号(:)分开，也没有没有专业（外校学生，没有本校专业）。
	private String specialtyId = "-1";//目前只考虑一个专业
	private String specialtyName = "" ;
	//学生：几年学制（3年、4年或者5年等）
	private float enrollment ;
	//学生头像
	private String image = "";
	//学生班级
	private String grade = "-1";
	private String gradeName = "" ;
	//用户状态， 1、默认为0，表示可以登录， 2、禁止后卫-2，不能登录， 3、逻辑删除后卫-1，不能登录
	private int status ;
	
	private String approwalAuthority ;//针对老师，显示当前老师是否有权限进行课程直接发布功能
	
	//教师简介
	private String descript ;
	private String positional = "";//老师职称编号
	private String teachingGroupId = "-1";//教研组id 
	
	private String statusVal ;
	
	private boolean releaseSelect = false ;//发布树表示是否选择
	
	private boolean hiddenTringBtn = false ;//教师查看学生考试成绩的时候，判断是否需要显示查看按钮
	
	private int file_path_id ;
	private String headImage;
	private boolean disable;//用户是否停用
	private boolean admin;
	
	
	
	public String nameTitle ;
	public String addressTitle ;
	public String joinTimeTitle ;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getDormitoryAddress() {
		return dormitoryAddress;
	}
	public void setDormitoryAddress(String dormitoryAddress) {
		this.dormitoryAddress = dormitoryAddress;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getSexName() {
		return sexName;
	}
	public void setSexName(String sexName) {
		this.sexName = sexName;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	public String getHomeAddress() {
		return homeAddress;
	}
	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}
	public String getBirtdate() {
		return birtdate;
	}
	public void setBirtdate(String birtdate) {
		this.birtdate = birtdate;
	}
	public String getZipCode() {
		return zipCode;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	public String getAdmissionTime() {
		return admissionTime;
	}
	public void setAdmissionTime(String admissionTime) {
		this.admissionTime = admissionTime;
	}
	public String getFacultyId() {
		return facultyId;
	}
	public void setFacultyId(String facultyId) {
		this.facultyId = facultyId;
	}
	public String getFaculty() {
		return faculty;
	}
	public void setFaculty(String faculty) {
		this.faculty = faculty;
	}
	public String getSpecialtyId() {
		return specialtyId;
	}
	public void setSpecialtyId(String specialtyId) {
		this.specialtyId = specialtyId;
	}
	public float getEnrollment() {
		return enrollment;
	}
	public void setEnrollment(float enrollment) {
		this.enrollment = enrollment;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getUserTypeName() {
		return userTypeName;
	}
	public void setUserTypeName(String userTypeName) {
		this.userTypeName = userTypeName;
	}
	public String getStatusVal() {
		return statusVal;
	}
	public void setStatusVal(String statusVal) {
		this.statusVal = statusVal;
	}
	public String getNumber() {
		if(null == number || "null".equalsIgnoreCase(number))
			return "";
		else
			return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getSpecialtyName() {
		if(null == specialtyName || "null".equalsIgnoreCase(specialtyName))
			return "";
		else
			return specialtyName;
	}
	public void setSpecialtyName(String specialtyName) {
		this.specialtyName = specialtyName;
	}
	public String getDescript() {
		if(null == descript || "null".equalsIgnoreCase(descript))
			return "";
		else
			return descript;
	}
	public void setDescript(String descript) {
		this.descript = descript;
	}
	
	public String getApprowalAuthority() {
		return approwalAuthority;
	}
	public void setApprowalAuthority(String approwalAuthority) {
		this.approwalAuthority = approwalAuthority;
	}
	public String getGradeName() {
		if(null == gradeName || "null".equalsIgnoreCase(gradeName))
			return "";
		else
			return gradeName;
	}
	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}
	public String getPositional() {
		if(null == positional || "null".equalsIgnoreCase(positional))
			return "";
		else
			return positional;
	}
	public void setPositional(String positional) {
		this.positional = positional;
	}
	public String getTeachingGroupId() {
		return teachingGroupId;
	}
	public void setTeachingGroupId(String teachingGroupId) {
		this.teachingGroupId = teachingGroupId;
	}
	public boolean isReleaseSelect() {
		return releaseSelect;
	}
	public void setReleaseSelect(boolean releaseSelect) {
		this.releaseSelect = releaseSelect;
	}
	public String getLogin_name() {
		return login_name;
	}
	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}
	public String getShowPassword() {
		return showPassword;
	}
	public void setShowPassword(String showPassword) {
		this.showPassword = showPassword;
	}
	public int getFile_path_id() {
		return file_path_id;
	}
	public void setFile_path_id(int file_path_id) {
		this.file_path_id = file_path_id;
	}
	public String getHeadImage() {
		return headImage;
	}
	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}
	public boolean isHiddenTringBtn() {
		return hiddenTringBtn;
	}
	public void setHiddenTringBtn(boolean hiddenTringBtn) {
		this.hiddenTringBtn = hiddenTringBtn;
	}
	
	public boolean isDisable() {
		return disable;
	}
	public void setDisable(boolean disable) {
		this.disable = disable;
	}
	public boolean isAdmin() {
		return id == 1 ? true : false;
	}
	public void setAdmin(boolean isAdmin) {
		this.admin = isAdmin;
	}
	public String getNameTitle() {
		return nameTitle;
	}
	public void setNameTitle(String nameTitle) {
		this.nameTitle = nameTitle;
	}
	public String getAddressTitle() {
		return addressTitle;
	}
	public void setAddressTitle(String addressTitle) {
		this.addressTitle = addressTitle;
	}
	public String getJoinTimeTitle() {
		return joinTimeTitle;
	}
	public void setJoinTimeTitle(String joinTimeTitle) {
		this.joinTimeTitle = joinTimeTitle;
	}
	@Override
	public String toString() {
		return "UserBean [id=" + id + ", login_name=" + login_name
				+ ", userName=" + userName + ", number=" + number
				+ ", dormitoryAddress=" + dormitoryAddress + ", email=" + email
				+ ", sex=" + sex + ", sexName=" + sexName + ", mobile="
				+ mobile + ", userType=" + userType + ", userTypeName="
				+ userTypeName + ", homeAddress=" + homeAddress + ", birtdate="
				+ birtdate + ", zipCode=" + zipCode + ", admissionTime="
				+ admissionTime + ", facultyId=" + facultyId + ", faculty="
				+ faculty + ", specialtyId=" + specialtyId + ", specialtyName="
				+ specialtyName + ", enrollment=" + enrollment + ", image="
				+ image + ", grade=" + grade + ", gradeName=" + gradeName
				+ ", status=" + status + ", approwalAuthority="
				+ approwalAuthority + ", descript=" + descript
				+ ", positional=" + positional + ", teachingGroupId="
				+ teachingGroupId + ", statusVal=" + statusVal
				+ ", releaseSelect=" + releaseSelect + ", hiddenTringBtn="
				+ hiddenTringBtn + ", file_path_id=" + file_path_id
				+ ", headImage=" + headImage + ", disable=" + disable
				+ ", admin=" + admin + ", nameTitle=" + nameTitle
				+ ", addressTitle=" + addressTitle + ", joinTimeTitle="
				+ joinTimeTitle + "]";
	}
 
 
	
}
